package com.medicine.manage.domain;

import com.medicine.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.medicine.common.annotation.Excel;

/**
 * 订单详情对象 m_order_detail
 * 
 * @author admin
 * @date 2024-10-13
 */
public class OrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 煎药方式 */
    @Excel(name = "煎药方式")
    private Long optionType;

    /** 药包重量（单位克） */
    @Excel(name = "药包重量", readConverterExp = "单=位克")
    private Double weight;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOptionType(Long optionType) 
    {
        this.optionType = optionType;
    }

    public Long getOptionType() 
    {
        return optionType;
    }
    public void setWeight(Double weight)
    {
        this.weight = weight;
    }

    public Double getWeight()
    {
        return weight;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("optionType", getOptionType())
            .append("weight", getWeight())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
